﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001153 RID: 4435
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetFriendMarkScRsp : IMessage<SetFriendMarkScRsp>, IMessage, IEquatable<SetFriendMarkScRsp>, IDeepCloneable<SetFriendMarkScRsp>, IBufferMessage
	{
		// Token: 0x17003821 RID: 14369
		// (get) Token: 0x0600C677 RID: 50807 RVA: 0x00217A89 File Offset: 0x00215C89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetFriendMarkScRsp> Parser
		{
			get
			{
				return SetFriendMarkScRsp._parser;
			}
		}

		// Token: 0x17003822 RID: 14370
		// (get) Token: 0x0600C678 RID: 50808 RVA: 0x00217A90 File Offset: 0x00215C90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetFriendMarkScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003823 RID: 14371
		// (get) Token: 0x0600C679 RID: 50809 RVA: 0x00217AA2 File Offset: 0x00215CA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetFriendMarkScRsp.Descriptor;
			}
		}

		// Token: 0x0600C67A RID: 50810 RVA: 0x00217AA9 File Offset: 0x00215CA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendMarkScRsp()
		{
		}

		// Token: 0x0600C67B RID: 50811 RVA: 0x00217AB1 File Offset: 0x00215CB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendMarkScRsp(SetFriendMarkScRsp other) : this()
		{
			this.uid_ = other.uid_;
			this.isSetMark_ = other.isSetMark_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C67C RID: 50812 RVA: 0x00217AEE File Offset: 0x00215CEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetFriendMarkScRsp Clone()
		{
			return new SetFriendMarkScRsp(this);
		}

		// Token: 0x17003824 RID: 14372
		// (get) Token: 0x0600C67D RID: 50813 RVA: 0x00217AF6 File Offset: 0x00215CF6
		// (set) Token: 0x0600C67E RID: 50814 RVA: 0x00217AFE File Offset: 0x00215CFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x17003825 RID: 14373
		// (get) Token: 0x0600C67F RID: 50815 RVA: 0x00217B07 File Offset: 0x00215D07
		// (set) Token: 0x0600C680 RID: 50816 RVA: 0x00217B0F File Offset: 0x00215D0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSetMark
		{
			get
			{
				return this.isSetMark_;
			}
			set
			{
				this.isSetMark_ = value;
			}
		}

		// Token: 0x17003826 RID: 14374
		// (get) Token: 0x0600C681 RID: 50817 RVA: 0x00217B18 File Offset: 0x00215D18
		// (set) Token: 0x0600C682 RID: 50818 RVA: 0x00217B20 File Offset: 0x00215D20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C683 RID: 50819 RVA: 0x00217B29 File Offset: 0x00215D29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetFriendMarkScRsp);
		}

		// Token: 0x0600C684 RID: 50820 RVA: 0x00217B38 File Offset: 0x00215D38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetFriendMarkScRsp other)
		{
			return other != null && (other == this || (this.Uid == other.Uid && this.IsSetMark == other.IsSetMark && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C685 RID: 50821 RVA: 0x00217B94 File Offset: 0x00215D94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.IsSetMark)
			{
				num ^= this.IsSetMark.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C686 RID: 50822 RVA: 0x00217C05 File Offset: 0x00215E05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C687 RID: 50823 RVA: 0x00217C0D File Offset: 0x00215E0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C688 RID: 50824 RVA: 0x00217C18 File Offset: 0x00215E18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Uid);
			}
			if (this.IsSetMark)
			{
				output.WriteRawTag(32);
				output.WriteBool(this.IsSetMark);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C689 RID: 50825 RVA: 0x00217C90 File Offset: 0x00215E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.IsSetMark)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C68A RID: 50826 RVA: 0x00217CF4 File Offset: 0x00215EF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetFriendMarkScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.IsSetMark)
			{
				this.IsSetMark = other.IsSetMark;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C68B RID: 50827 RVA: 0x00217D58 File Offset: 0x00215F58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C68C RID: 50828 RVA: 0x00217D64 File Offset: 0x00215F64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 32U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.IsSetMark = input.ReadBool();
					}
				}
				else
				{
					this.Uid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004FD8 RID: 20440
		private static readonly MessageParser<SetFriendMarkScRsp> _parser = new MessageParser<SetFriendMarkScRsp>(() => new SetFriendMarkScRsp());

		// Token: 0x04004FD9 RID: 20441
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004FDA RID: 20442
		public const int UidFieldNumber = 3;

		// Token: 0x04004FDB RID: 20443
		private uint uid_;

		// Token: 0x04004FDC RID: 20444
		public const int IsSetMarkFieldNumber = 4;

		// Token: 0x04004FDD RID: 20445
		private bool isSetMark_;

		// Token: 0x04004FDE RID: 20446
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04004FDF RID: 20447
		private uint retcode_;
	}
}
